package com.yzg.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* @Author: decade
* @Description: ${description}
* @Date: 2021/1/14 20:49
**/
/**
    * 管理员表
    */
@ApiModel(value="com-yzg-pojo-User")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "acl_user")
public class User implements Serializable {
    /**
     * 会员id
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value="会员id")
    private String id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    @ApiModelProperty(value="用户名")
    private String username;

    /**
     * 微信登录openid
     */
    @TableField(value = "weixin_openid")
    @ApiModelProperty(value="微信登录openid")
    private String weixinOpenid;

    /**
     * 密码
     */
    @TableField(value = "password")
    @ApiModelProperty(value="密码")
    private String password;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    @ApiModelProperty(value="昵称")
    private String nickName;

    /**
     * 用户头像
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value="用户头像")
    private String avatar;

    /**
     * 盐值
     */
    @TableField(value = "salt")
    @ApiModelProperty(value="盐值")
    private String salt;

    /**
     * 用户签名
     */
    @TableField(value = "token")
    @ApiModelProperty(value="用户签名")
    private String token;

    /**
     * 最近一次登录IP地址
     */
    @TableField(value = "last_login_ip")
    @ApiModelProperty(value="最近一次登录IP地址")
    private String lastLoginIp;

    /**
     * 最近一次登录时间
     */
    @TableField(value = "last_login_time")
    @ApiModelProperty(value="最近一次登录时间")
    private Date lastLoginTime;

    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    @TableField(value = "deleted")
    @ApiModelProperty(value="逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Boolean deleted;

    /**
     * 创建时间
     */
    @TableField(value = "add_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date addTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USERNAME = "username";

    public static final String COL_WEIXIN_OPENID = "weixin_openid";

    public static final String COL_PASSWORD = "password";

    public static final String COL_NICK_NAME = "nick_name";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_SALT = "salt";

    public static final String COL_TOKEN = "token";

    public static final String COL_LAST_LOGIN_IP = "last_login_ip";

    public static final String COL_LAST_LOGIN_TIME = "last_login_time";

    public static final String COL_DELETED = "deleted";

    public static final String COL_ADD_TIME = "add_time";

    public static final String COL_UPDATE_TIME = "update_time";
}